package com.cyn.controller.system;

import com.cyn.entity.system.UserDO;
import com.cyn.service.RoleService;
import com.cyn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RequestMapping("/sys/user")
@Controller
public class UserController {
	private String prefix="system/user"  ;
	@Autowired
	UserService userService;
	@Autowired
	RoleService roleService;

	@GetMapping("/list")
	@ResponseBody
	List<UserDO>  list(@RequestParam Map<String, Object> params) {
		// 查询列表数据
		List<UserDO> sysUserList = userService.list(new HashMap<>());
		return sysUserList;
	}

}
